package cn.matezk.cloud.controller;

import cn.matezk.cloud.dto.EventDto;
import cn.matezk.cloud.model.Event;
import cn.matezk.cloud.service.IEventService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("miniApp")
public class EventController {
    @Autowired
    private IEventService eventService;

    @GetMapping("event")
    public PageInfo<Event> query(EventDto eventDto) {
        return eventService.query(eventDto);
    }
}
